--
-- @Author:      feilong
-- @DateTime:    2019-11-1 17:48:12
-- @Description: 负责redis落地mongo

local skynet = require "skynet"
local server_config = dofile(skynet.getenv("server_config"))

skynet.start(function()

	local debug_listen_ip = "127.0.0.1"
	if not server_config.no_cotainer then
		debug_listen_ip = '0.0.0.0'
	end
	skynet.newservice("debug_console",debug_listen_ip, server_config.debug_port)

	--主服务
	local manager = skynet.newservice("manager_service")
	skynet.call(manager, "lua", "start")

    skynet.exit()
end)

